﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;

namespace CaroLibraly
{
    public class Position  
    {
        public int x;
        public int y;
        public Position()
        {
        }
        public void Set(Position p)
        {
            x = p.x; y = p.y;
        }
        public void Set(int a, int b)
        {
            x = a; y = b;
        }
        public Position(int a, int b)
        {
            x = a; y = b;
        }
        public static Point PositionToPoint(Position p, int size)
        {
            return new Point((p.x - 1) * size, p.y * size);
        }
    }
}
